const TerserWebpackPlugin = require('terser-webpack-plugin')

module.exports = {
    output: {
        // 为不同的入口配置出口
        filename: 'scripts/[name].[contenthash].js',
        publicPath: 'http://localhost:8080/'
    },
    mode: 'production',
    optimization: {
        minimizer: [
            new TerserWebpackPlugin()
        ],
    },
    // 性能提示,如果为true话，会提示超出打包大小
    performance: {
        hints: false
    }
}
